import request from '@/utils/request'

// 查询业主管理列表
export function listTheOwner(query) {
  return request({
    url: '/property/owner/list',
    method: 'get',
    params: query
  })
}

// 查询业主管理详细
export function getTheOwner(id) {
  return request({
    url: '/property/owner/' + id,
    method: 'get'
  })
}

// 新增业主管理
export function addTheOwner(data) {
  return request({
    url: '/property/owner',
    method: 'post',
    data: data
  })
}

// 修改业主管理
export function updateTheOwner(data) {
  return request({
    url: '/property/owner',
    method: 'put',
    data: data
  })
}

// 删除业主管理
export function delTheOwner(id) {
  return request({
    url: '/property/owner/' + id,
    method: 'delete'
  })
}

// 导出业主管理
export function exportTheOwner(query) {
  return request({
    url: '/property/owner/export',
    method: 'get',
    params: query
  })
}
